<aside class="lg-side">
  <div class="panel-heading tab-bg-dark-navy-blue okr-tab-head tab-right "></div>
  <div class="inbox-body mi-h8">
    <div class="row">
      <div class="col-lg-12">
        <section class="panel">
          <header class="panel-heading add-heading">
            项目公告信息
          </header>
          <div class="panel-body">
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">公告标题</label>
              <div class="col-sm-10">
                <textarea class="form-control" maxlength="120" id="title"></textarea>
              </div>
            </div>
            <div class="form-group customerForm">
              <label class="col-sm-2 control-label">公告内容</label>
              <div class="col-sm-10">
                <textarea class="form-control" maxlength="120" id="content"></textarea>
              </div>
            </div>
          </div>
        </section>
        <p class="default-buttons">
          <a href="javascript:void(0);" class="button-back btn btn-info" onclick="toBack()">返回</a>
          <a href="javascript:void(0);" class="button-next  btn btn-info submit">提交</a>
        </p>
      </div>
    </div>
  </div>
</aside>
<script>
  function toBack() {
      toLoadHtml(50);
  }
  var nid = 0;
  function toEditNotice(id) {
      nid = id;
      $certusUtils.ajax('toEditNotice',{"id":id},function (response) {
          $("#title").val(response.data.title);
          $("#content").val(response.data.content);
      })
  }
  
  $(".submit").on('click',function () {
      var title = $("#title").val();
      var content = $("#content").val();
      $certusUtils.ajax("editNotice",{"id":nid,"projId":proId,"title":title,"content":content},function(){
          layer.msg("编辑成功");
          toLoadHtml(50);
      })
  })
</script>